export default [
    { exact: true, path: '/',redirect:'/main' },
    {
        path: '/main',
        component: '@/pages/Main/index',
        routes: [
            { 
                path: '/main/classManger', 
                component: '@/pages/main/class/classManger',
                exact: true,
                meta:{
                    type:'class'
                }

            },
            { 
                path: '/main/roomManger', 
                component: '@/pages/main/class/roomManger' ,
                exact: true,
                meta:{
                    type:'class'
                }
            },
            { 
                path: '/main/studentManger', 
                component: '@/pages/main/class/studentManger',
                exact: true,
                meta:{
                    type:'class'
                }
            },
            { 
                path: '/main/addExam', 
                component: '@/pages/main/exam/addExam',
                exact: true,
                meta:{
                    type:'exam'
                }
            },
            { 
                path: '/main/testPaper', 
                component: '@/pages/main/exam/testPaper',
                exact: true,
                meta:{
                    type:'exam'
                }
            },
            { 
                path: '/main/addQuestion', 
                component: '@/pages/main/questions/addQuestion',
                exact: true,
                meta:{
                    type:'questions'
                }
            },
            { 
                path: '/main/questionClassify', 
                component: '@/pages/main/questions/questionClassify',
                exact: true,
                meta:{
                    type:'questions'
                }
            },
            { 
                path: '/main/showQuestion', 
                component: '@/pages/main/questions/showQuestion',
                exact: true,
                meta:{
                    type:'questions'
                } 
            },
            {
                path:'/main/questionsDetail',
                component:'@/pages/main/questions/questionsDetail',
                exact:true,
                meta:{
                    type:'questions'
                }
            },
            { 
                path: '/main/addUser', 
                component: '@/pages/main/users/addUser',
                exact: true,
                meta:{
                    type:'user'
                } 
            },
            { 
                path: '/main/userList', 
                component: '@/pages/main/users/userList' ,
                exact: true,
                meta:{
                    type:'user'
                }
            },
            {
                path:'/main',
                redirect:'/main/addQuestion'
            },
            {
                path:'*',
                component:'@/pages/404'
            }
        ],
    }, 
    { path: '/login', component: '@/pages/login',exact: true },
    {
        path:'*',
        component:'@/pages/404'
    }
]